﻿module.exports = {
  lintOnSave: false,
  devServer: {
    host: '0.0.0.0', //localhost
    port: 8080,
    open: true,
    overlay: {
      warnings: false,
      errors: true,
    },
    proxy: {
      '/api': {
        target: 'http://10.112.149.51:8082',
        ws: true,
        changOrigin: true,
        pathRewrite: {
          '^/api': '', // 思路是如果是开发环境，就给所有要代理的接口统一加上前缀，然后代理请求时再统一通过rewrite去掉
        },
      },
    },
  },
  css: {
    loaderOptions: {
      scss: {
        data: `@import "@/assets/scss/mixin.scss";
                    @import "@/assets/scss/config.scss";
                   @import "@/assets/scss/button.scss";
                   @import "@/assets/scss/model.scss";`,
      },
    },
  },
}
